@use "@/styles/usenamespace.scss" as ns;
@use "@/styles/mixin.scss" as mixin;
@use "@/styles/function.scss" as fun;

@include ns.b(numberbox) using ($b) {
  display: flex;

  @include ns.e(controls) using ($e) {
    padding: 0;
    @include ns.b(button) using ($bb) {
      @include ns.e(shadow) using ($e) {
        display: none;
      }
      @include ns.e(content) using ($e) {
        height: 100%;

        image {
          width: auto;
          height: 100%;
        }
        .iconfont {
          position: absolute;
          @include mixin.locate();
          display: flex;
          justify-content: center;
          align-items: center;
          font-weight: bold;
        }
      }
    }
  }

  @include ns.e(add) using ($e) {
    order: 1;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }

  @include ns.e(reduce) using ($e) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }

  @include ns.b($b) using ($b) {
    @include ns.e(input) using ($e) {
      flex: auto;
    }
  }

  @include ns.s(controls) using ($s) {
    @include ns.b($b) using ($b) {
      @include ns.e(input) using ($e) {
        text-align: center;
        border-radius: 0;
        background: transparent;
        padding-top: 0;
        padding-bottom: 0;
      }
    }

    @include ns.s(disabled) using ($s) {
      background: fun.getCssVarValue(disabled-backgroundColor);
      @include ns.b($b) using ($b) {
        @include ns.e(input) using ($e) {
          background: transparent;
        }
      }
    }
  }
}
